# !/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :user.py
# @Time      :2022/5/30 0030 18:47
# @Author    :何胜利
from flask_restful import fields

user_fields = {
    "uid": fields.Integer,
    "account": fields.String,
    "user_name": fields.String,
    "gender": fields.Integer,
    "create_date": fields.DateTime,
    "profile_photo": fields.String,
}

channel_fields = {
    "cid": fields.Integer,
    "cname": fields.String,
    "ctime": fields.DateTime,
    "sequence": fields.Integer,
}

followList_fields = {
    "uid": fields.Integer,
    "account": fields.String,
    "user_name": fields.String,
    "gender": fields.Integer,
    "create_date": fields.DateTime,
    "profile_photo": fields.String,
}

comments_fields = {
    "cname": fields.String,
    'cmid': fields.Integer,
    'user_id': fields.Integer,
    'article_id': fields.Integer,
    'parent_id': fields.Integer,
    'like_count': fields.Integer,
    'reply_count': fields.Integer,
    'content': fields.String,
    'is_top': fields.Integer,
    'status': fields.Integer,
    'ctime': fields.DateTime
}

news_fields = {
    'user_id':fields.Integer,
    'nid':fields.Integer,
    'title':fields.String,
    'cover': fields.String,
    'content': fields.String,
    'comment_count': fields.Integer,
    'good_count': fields.Integer,
    'ctime': fields.DateTime,
    'is_follow': fields.Boolean,
    'is_like': fields.Boolean,
    "is_collection": fields.Boolean,
}

collection_fields = {
    "user_id": fields.Integer,
    "news_id": fields.Integer,
    "is_delete": fields.Boolean,
    "create_time": fields.DateTime,
    "update_time": fields.DateTime,
}
